<%@ page language="java" import="javax.naming.*,com.lc.ejb.*"
	contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	本地客户端(同JBoss在一个JVM中)
	<br />
	<%
		InitialContext context = new InitialContext();
		UsersManagerLocal usersManagerLocal = (UsersManagerLocal) context
				.lookup("UsersManagerBean/local");

		Users user = new Users();
		user.setUname("芊胩");
		user.setUpwd("qianka");
		usersManagerLocal.addUser(user);
		out.println("用户ID:" + user.getUid());
	%>
</body>
</html>